<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
 <head>
  <title> new document </title>
  <meta name="generator" content="editplus" />
  <script type="text/javascript">
 function selectvalue(values)
 {
  window.opener.document.getElementById('values').value=values;
  var browserName=navigator.appName;  
                 if (browserName=="Netscape"){  
                      // alert('chrome');   
                       window.open('', '_parent', '');  
                       window.close();  
                 }  
                 if (browserName=="Microsoft Internet Explorer") {   
                       alert('ie');  
                       window.parent.opener = "whocares";   
                       window.parent.close();   
                 }  
				 
//如果你使用的是firefox浏览器必须要做以下设置 
//1、在地址栏输入about:config然后回车，警告确认 
//2、在过滤器中输入”dom.allow_scripts_to_close_windows“，双击即可将此//值设为true 
 }
  </script>
 </head>
 <body>
  <select id="selectlist" onchange="selectvalue(this.value)">
 <option value="" selected="selected">请选择值</option>
 <option value="值1">值1</option>
 <option value="值2">值2</option>
 <option value="值3">值3</option>
 <option value="值4">值4</option>
  </select>
 </body>
</html>
